﻿
using BCCommon;
using BCCommon.Enums;
using BCData.CRM.EnterpriseInfomation;
using BCDto.CRM.EnterpriseInfomation;
using BCDto.Tools;
using BCEntity.CRM.EnterpriseInfomation;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.CRM.EnterpriseInfomation
{
    /// <summary>
    /// 企业信息
    /// </summary>
    public interface IEnterpriseInfomationService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="enterpriseInfomationId">企业信息Id</param>
        bool Exists(long enterpriseInfomationId);
        /// <summary>
        /// 添加企业信息
        /// </summary>
        /// <param name="requestDto">企业信息信息</param>
        EnterpriseInfomationDto Add(EnterpriseInfomationRequestDto requestDto);
        /// <summary>
        /// 更新企业信息
        /// </summary>
        /// <param name="putDto">企业信息信息</param>
        EnterpriseInfomationDto Update(EnterpriseInfomationPutDto putDto);
        /// <summary>
        /// 删除企业信息
        /// </summary>
        /// <param name="enterpriseInfomationId">企业信息Id</param>
        bool Delete(long enterpriseInfomationId);
        /// <summary>
        /// 获取企业信息
        /// </summary>
        /// <param name="enterpriseInfomationId">企业信息Id</param>
        EnterpriseInfomationDto Get(long enterpriseInfomationId);
        /// <summary>
        /// 获取企业信息列表
        /// </summary>
        IEnumerable<EnterpriseInfomationDto> GetList();
        /// <summary>
        /// 获取企业信息分页列表
        /// </summary>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">企业信息每页数据条数</param>
        PageableList<EnterpriseInfomationDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法

        #region 导入
        /// <summary>
        /// 导入企业文件信息
        /// </summary>
        /// <param name="sourceType">来源类型</param>
        /// <param name="filePath">文件路径</param>
        /// <returns>返回导入成功的数量</returns>
        ImportResultDto ImportEnterpriseFile(string sourceType, string filePath);
        #endregion
    }
}